
/*
 * @Description: 告警模板管理
 */
import zhreq from "@/api/index";
export default {
  /**
   * @description: 获取告警模板表格 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  getlist(params) {
    return zhreq.post("alarm/alarmTemplate/queryPageByCondition", {
      ...params,
      // entity: {
      //   systemFlag: "flag",
      // }
    });
  },
  /**
   * @description: 添加
   * @param {Object}  *
   */
  addlist(params) {
    return zhreq.post("alarm/alarmTemplate/add", {
      ...params,
      systemFlag: "flag",
    });
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  dellist(params) {
    return zhreq.get("alarm/alarmTemplate/delListById", {
      idList: params
    });
  },
  /**
  * @description: 单个删除
  * @param {Object}  *
  */
  del(params) {
    return zhreq.get(`alarm/alarmTemplate/delById`, { id: params });
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  editlist(params) {
    return zhreq.post("alarm/alarmTemplate/edit", {
      ...params,
      systemFlag: "flag",
    });
  },
  /**
   * @description: 条件查询
   * @param {Object}  *
   */
  queryByCondition(params) {
    return zhreq.post("alarm/alarmTemplate/queryByCondition", {
      ...params,
      systemFlag: "flag",
    });
  },
};
